package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entities.CommonResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @PROJECT_NAME: cloud2020
 * @DESCRIPTION: 库存
 * @Author: csc
 * @DATE: 2023/4/6 13:44
 */
@Mapper
public interface StorageDao {

    /**
     * 减库存操作
     * productId 产品id
     * count 数量
     * */
    void decrease(@Param("productId") Long productId,@Param("count") Integer count);




}
